// pages/home/home.js
Page({
    data: {
        isShowPlace: true,
        timer: null // 防止抖动
    },
    inputSearchValue(event) {
        var value = event.detail.value;
        var isShowPlace = true;
        if("" != value) {
            isShowPlace = false;
        }
        this.setData({
            isShowPlace
        });
    },
    doSearchFilms(event) {
        var value = event.detail.value;
        console.log("search-value:", value);
    },
    endScrollRight(event) {
        if(this.data.timer) {
            clearTimeout(this.data.timer);
            this.data.timer = null;
        }
        this.data.timer = setTimeout(function(){
            console.log("endRight--");
        }, 500);
    }
})